<#include "/includes/vars.inc">  
<@pp.dropOutputFile />
<#list entities.entity as entity>
    <@pp.changeOutputFile name="${webDir}/jeecode/"+entity.@name?uncap_first+"/include/"+entity.@name?cap_first+"Delete.xhtml" />
    <#assign entityName = entity.@name>
    <#assign managedBean = entity.@name?uncap_first+"Controller">
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <ui:composition>
        <p:confirmDialog message="${r"#{"}msg.confirmDelete}"
                         header="Confirm"
                         severity="alert"
                         widgetVar="confirm${entityName}Dialog">
            <p:commandButton value="${r"#{"}msg.yes}"
                             update="<#if entity.@parent[0]??>:tab${entity.@parent}</#if>:form${entityName}List:data"
                             oncomplete="confirm${entityName}Dialog.hide()"
                             action="${r"#{"}${managedBean}${r".delete}"}" />
            <p:commandButton value="${r"#{"}msg.no}"
                             onclick="confirm${entityName}Dialog.hide()"
                             type="button" />
        </p:confirmDialog>
    </ui:composition>
</html>
</#list>